package com.ruoyi.peach.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.peach.mapper.DetectionRecordMapper;
import com.ruoyi.peach.domain.DetectionRecord;
import com.ruoyi.peach.service.IDetectionRecordService;

/**
 * 识别记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-28
 */
@Service
public class DetectionRecordServiceImpl implements IDetectionRecordService 
{
    @Autowired
    private DetectionRecordMapper detectionRecordMapper;

    /**
     * 查询识别记录
     * 
     * @param id 识别记录主键
     * @return 识别记录
     */
    @Override
    public DetectionRecord selectDetectionRecordById(Long id)
    {
        return detectionRecordMapper.selectDetectionRecordById(id);
    }

    /**
     * 查询识别记录列表
     * 
     * @param detectionRecord 识别记录
     * @return 识别记录
     */
    @Override
    public List<DetectionRecord> selectDetectionRecordList(DetectionRecord detectionRecord)
    {
        return detectionRecordMapper.selectDetectionRecordList(detectionRecord);
    }

    /**
     * 新增识别记录
     * 
     * @param detectionRecord 识别记录
     * @return 结果
     */
    @Override
    public int insertDetectionRecord(DetectionRecord detectionRecord)
    {
        return detectionRecordMapper.insertDetectionRecord(detectionRecord);
    }

    /**
     * 修改识别记录
     * 
     * @param detectionRecord 识别记录
     * @return 结果
     */
    @Override
    public int updateDetectionRecord(DetectionRecord detectionRecord)
    {
        return detectionRecordMapper.updateDetectionRecord(detectionRecord);
    }

    /**
     * 批量删除识别记录
     * 
     * @param ids 需要删除的识别记录主键
     * @return 结果
     */
    @Override
    public int deleteDetectionRecordByIds(Long[] ids)
    {
        return detectionRecordMapper.deleteDetectionRecordByIds(ids);
    }

    /**
     * 删除识别记录信息
     * 
     * @param id 识别记录主键
     * @return 结果
     */
    @Override
    public int deleteDetectionRecordById(Long id)
    {
        return detectionRecordMapper.deleteDetectionRecordById(id);
    }
}
